<template>
	<view>
		<view class="article-c">
			
		
		<view class="title">
			{{articleInfo.title}}
		</view>
		<view class="author">
			作者：{{articleInfo.author}}
		</view>
		<view class="time">
			时间：{{articleInfo.createTime}}
		</view>
		<view class="desc">
			概要描述：{{ articleInfo.summary}}
		</view>
		<view class="img" v-html="articleInfo.content1">
			
		</view>
		<view class="img" >
			<image :src="articleInfo.coverImg" mode=""></image>
		</view>
		</view>
	</view>
</template>

<script>
	import {ArticleInfo} from"../../../utils/find/index.js"
	export default {
		data() {
			return {
				articleInfo:{}
			}
		},
		methods: {
			
		},
		onLoad(options){
			var id=options.id
			// console.log(id)
			ArticleInfo(id).then(res=>{
				console.log(res)
				this.articleInfo=res.data.productArticle
			})
		}
	}
</script>

<style scoped lang="scss">

.article-c{
	width: 90%;
	margin: 0 auto;
	image{
		width: 100%;
	}
	.title,.desc{
		text-align: center;
	}
	.author,.time{
		text-align: right;
	}
}
		
</style>
